package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-03-05
 */
public class InGoodsOrderGoods extends Model<InGoodsOrderGoods> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 进货订单表id
     */
    private String inGoodsOrderId;

    /**
     * 商品表id
     */
    private String goodsId;

    /**
     * 已转进货单数量
     */
    private BigDecimal hasInNumber;

    /**
     * 未转进货单数量
     */
    private BigDecimal waitInNumber;

    /**
     * 商品数量
     */
    private BigDecimal number;

    /**
     * 商品单位表id
     */
    private String unitId;

    /**
     * 换算倍数
     */
    private BigDecimal times;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 备注
     */
    private String remark;

    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getInGoodsOrderId() {
        return inGoodsOrderId;
    }

    public void setInGoodsOrderId(String inGoodsOrderId) {
        this.inGoodsOrderId = inGoodsOrderId;
    }
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
    public BigDecimal getHasInNumber() {
        return hasInNumber;
    }

    public void setHasInNumber(BigDecimal hasInNumber) {
        this.hasInNumber = hasInNumber;
    }
    public BigDecimal getWaitInNumber() {
        return waitInNumber;
    }

    public void setWaitInNumber(BigDecimal waitInNumber) {
        this.waitInNumber = waitInNumber;
    }
    public BigDecimal getNumber() {
        return number;
    }

    public void setNumber(BigDecimal number) {
        this.number = number;
    }
    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }
    public BigDecimal getTimes() {
        return times;
    }

    public void setTimes(BigDecimal times) {
        this.times = times;
    }
    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "InGoodsOrderGoods{" +
            "id=" + id +
            ", inGoodsOrderId=" + inGoodsOrderId +
            ", goodsId=" + goodsId +
            ", hasInNumber=" + hasInNumber +
            ", waitInNumber=" + waitInNumber +
            ", number=" + number +
            ", unitId=" + unitId +
            ", times=" + times +
            ", price=" + price +
            ", amount=" + amount +
            ", remark=" + remark +
            ", companyId=" + companyId +
        "}";
    }
}
